#ifndef _NET_INFOM_H_
#define _NET_INFOM_H_

#if defined(_WIN32) || defined(_WIN64)

#else
#define USE_IF_ADDR 1

int get_local_ip(const char* eth_name ,char* ip);
int get_local_gw(const char* eth_name ,char* gw);
int get_local_netmask(const char* eth_name ,char* netmask);
int get_ip_by_gw(const char* gw,char *ip);
#if !USE_IF_ADDR
int get_local_hwaddr(const char* eth_name ,char* hwaddr);
#endif
#endif

#endif

